package org.finesys.system.api.feign;

import org.finesys.common.constants.ServerConstants;
import org.finesys.common.core.module.R;
import org.finesys.system.api.service.DeptService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(contextId = "deptServiceApi", value = ServerConstants.SYSTEM_SERVER)
public interface DeptServiceApi extends DeptService {

    @GetMapping(value = "/dept/getDeptNameByUserId")
    R<String> getDeptAllByUserId();

}
